import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const PRODUCT: AppRouteRecordRaw = {
  path: '/product',
  name: 'product',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '生产管理',
    requiresAuth: false,
    icon: 'icon-menu',
    order: 2,
  },
  children: [
    {
      path: 'xsdd',
      name: 'productXSDD',
      component: () => import('@/views/product/xsdd/xsdd.vue'),
      meta: {
        locale: '销售订单',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'tasktz',
      name: 'productTaskTZ',
      component: () => import('@/views/product/tasktz/tasktz.vue'),
      meta: {
        locale: '生产任务通知单',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'plan',
      name: 'productPlan',
      component: () => import('@/views/product/plan/plan.vue'),
      meta: {
        locale: '生产计划',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'pgd',
      name: 'productPGD',
      component: () => import('@/views/product/pgd/pgd.vue'),
      meta: {
        locale: '派工单',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
    {
      path: 'pgd',
      name: 'productBGT',
      component: () => import('@/views/product/pgd/bgt.vue'),
      meta: {
        locale: '报工台',
        requiresAuth: true,
        roles: [permissionType.pingTaiLogin],
      },
    },
  ],
}
export  default  PRODUCT
